package com.ithinks.flow.common.config.mutidatasource;


import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource;

/**
 * @Description
 * @ClassName DynamicDataSource
 * @Author MR.LI
 * @date 2020.12.01 19:17
 */
public class DynamicDataSource extends AbstractRoutingDataSource {

    @Override
    protected Object determineCurrentLookupKey() {
        return DataSourceHolder.getDataSourceTyoe();
    }
}
